const meet = require("../../database/meet");

module.exports = async (req, res, next)=>{
  const {meetId, name, type, config, state} = req.query;

  const where = {};
  if(meetId) where.meetId = meetId;
  if(name) where.name = name;
  if(type) where.type = type;
  if(state) where.state = Boolean(state-0);

  const data = await meet.find(where, {_id:0,__v:0})
  res.send({
    code:1,
    msg:"获取成功",
    data
  })
}

